import request from './request';

// 获取验证码
export const getCode = phone => request({ url: `/user/passport/sendCode/${phone}`, method: 'get' });

// 用户注册
export const userRegister = data => {
	return request({
		url: '/user/passport/register',
		method: 'post',
		data,
	});
};
